package org.spring.aop.support;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.spring.aop.MethodBeforeAdvice;

import java.lang.reflect.Method;

/**
 * KeyServiceBeforeAdvice
 *
 * @author 李坤
 * @date 2022/4/19 16:00
 */
public class KeyServiceBeforeAdvice implements MethodBeforeAdvice {

    private static final Logger logger = LoggerFactory.getLogger(KeyServiceBeforeAdvice.class);

    @Override
    public void before(Object target, Method method, Object[] args) throws Throwable {
        logger.debug("开始执行{}的前置方法", method.getName());
    }

}
